home *** CD-ROM | disk | FTP | other *** search
/ Aminet 39 / Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso / Aminet / mus / misc / spcli.lha / SongPlayerCLI / Rexx / SpCLI / Prev.rexx < prev    next >
OS/2 REXX Batch file  |  2000-08-23  |  484b  |  23 lines

  1. /* 
  2. SongPlayerCLI v1.52 (by Gareth Griffiths)
  3. E-Mail: gazchap@btinternet.com
  4. Prev.rexx - Moves to the previous file in the playlist
  5. */
  6.  
  7. IF ~SHOW('P','SONGPLAYER.1') THEN DO
  8.     ADDRESS COMMAND
  9.     SAY "Can't find ARexx port 'SONGPLAYER.1'"
  10.     EXIT
  11. END
  12.  
  13. IF ~SHOW('P','SONGPLAYER.1') THEN DO;EXIT;END
  14.  
  15. ADDRESS 'SONGPLAYER.1'
  16. OPTIONS RESULTS
  17. 'PREV'
  18. 'GET_TITLE';title=result
  19. 'GET_ARTIST';artist=result
  20. 'GET_SELECTED';index=result
  21. ADDRESS COMMAND
  22. SAY 'Current File: ('index') 'artist': 'title
  23. EXIT